#ifndef _MYDRIVER_H_
#define _MYDRIVER_H_

void init_max395(void);
void max395_write(unsigned char data);
// channel
void switch_on(unsigned char *switch_state, unsigned char n);
void switch_off(unsigned char *switch_state, unsigned char n);
void switch_all_on(unsigned char *switch_state);
void switch_all_off(unsigned char *switch_state);

// TIA
void tia_on(unsigned char *tia_state, unsigned char n);
void tia_off(unsigned char *tia_state, unsigned char n);
void tia_all_on(unsigned char *tia_state);
void tia_all_off(unsigned char *tia_state);

// DAC
void init_dac(void);
void dac_set_voltage(float voltage); // 0~4095mV

// ADC
void init_adc(void);
int adc_get_voltage(void);

#endif /* _MYDRIVER_H_ */